#include "StdAfx.h"
#include "MyMap.h"
CMyMap::CMyMap(void)
{
	bm = new Bitmap(4000,600,PixelFormat32bppARGB);
	x = 0;
	y = 0;
}

CMyMap::~CMyMap(void)
{
}
void CMyMap::ToRight() {
	x-=DISTANCE;
}
void CMyMap::ToLeft() {
	x+=DISTANCE;
}
void CMyMap::Draw(HDC *pDC) {
	Graphics g(*pDC);
	g.DrawImage(bm,x,y);
}
void CMyMap::Reset() {
	x = 0;
	y = 0;
}